﻿@using ZBJF.Warranty.BLL
@using ZBJF.Warranty.Common.Enums.InsuranceWarranty
@using EnumHelper = ZBJF.Warranty.Common.Common.EnumHelper
@model ZBJF.Warranty.Model.InsuranceWarrantyRecord
@{
    var sortingCenterSendOrderUser = ServiceFactory.SystemUserServiceInstance.Load(Model.SortingCenterSendOrderUserID ?? 0);
}
<!--客户地址信息-->
@RenderPage("/Views/WorkOrderCommonInfo/ReportInfo.cshtml", new { insuranceWarrantyRecordID = Model.ID })
<h4>维修安排</h4>
<table class="table table-responsive table-bordered table-hover">
    <tr>
        <th class="w120">维修方式：</th>
        <td class="w-p25">@(ZBJF.Warranty.Common.Common.EnumHelper.Instance.GetDescription(typeof(WarrantyMaintenanceType), Model.WarrantyMaintenanceTypeID))</td>
        <th class="w120">网点名称：</th>
        <td class="w-p25">@Html.DisplayFor(n => n.ServiceProviderBranch.BranchName)</td>
    </tr>
    <tr>
        <th>网点地址：</th>
        <td>@Html.DisplayFor(n => n.ServiceProviderBranch.Address)</td>
        <th>所属服务商：</th>
        <td>@Html.DisplayFor(n => n.ServiceProviderBranch.ServiceProvider.ServiceProviderName)</td>
    </tr>
    <tr>
        <th>派单人：</th>
        <td>@(sortingCenterSendOrderUser != null ? sortingCenterSendOrderUser.UserDisPlayName : "")</td>
        <th>派单时间：</th>
        <td>@Html.DisplayFor(n => n.SendOrderTime)</td>
    </tr>
    <tr>
        <th>锁屏密码：</th>
        <td>@( EnumHelper.Instance.GetDescription(typeof(LockScreenTypeEnums), Model.LockScreenTypeID) + "-" + Model.LockScreenContent)</td>
        <th></th>
        <td></td>
    </tr>
</table>